<%@ Control Language="C#" Inherits="Owu.Modules.EventCalender.ViewEventCalender"
    CodeFile="ViewEventCalender.ascx.cs" AutoEventWireup="true" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<asp:UpdatePanel ID="udpCalender" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Panel ID="pCalendar" runat="server">
            <p>
                <asp:DropDownList ID="ddlCategories" runat="server">
                </asp:DropDownList>
            </p>
            <p>
                <asp:Button ID="btnDayView" Text="Day" runat="server" />&nbsp;
                <asp:Button ID="btnNew" runat="server" Text="New" OnClick="btnNew_Click" />&nbsp;
                <asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlMonth_SelectedIndexChanged">
                    <asp:ListItem>January</asp:ListItem>
                    <asp:ListItem>February</asp:ListItem>
                    <asp:ListItem>March</asp:ListItem>
                    <asp:ListItem>April</asp:ListItem>
                    <asp:ListItem>May</asp:ListItem>
                    <asp:ListItem>June</asp:ListItem>
                    <asp:ListItem>July</asp:ListItem>
                    <asp:ListItem>August</asp:ListItem>
                    <asp:ListItem>September</asp:ListItem>
                    <asp:ListItem>October</asp:ListItem>
                    <asp:ListItem>November</asp:ListItem>
                    <asp:ListItem>December</asp:ListItem>
                </asp:DropDownList>
                &nbsp;
                <asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged">
                    <asp:ListItem>2005</asp:ListItem>
                    <asp:ListItem>2006</asp:ListItem>
                    <asp:ListItem>2007</asp:ListItem>
                    <asp:ListItem>2008</asp:ListItem>
                    <asp:ListItem>2009</asp:ListItem>
                    <asp:ListItem>2010</asp:ListItem>
                    <asp:ListItem>2011</asp:ListItem>
                    <asp:ListItem>2012</asp:ListItem>
                    <asp:ListItem>2013</asp:ListItem>
                    <asp:ListItem>2014</asp:ListItem>
                    <asp:ListItem>2015</asp:ListItem>
                </asp:DropDownList>
            </p>
            <p>
                <asp:LinkButton ID="lbtnPrevious" runat="server" OnClick="lbtnPrevious_Click"></asp:LinkButton>&nbsp;
                <asp:Label ID="lblCurrentMoth" runat="server"></asp:Label>&nbsp;
                <asp:LinkButton ID="lbtnNext" runat="server" OnClick="lbtnNext_Click"></asp:LinkButton></p>
            <asp:GridView ID="gvCalender" runat="server" AutoGenerateColumns="false" OnRowCommand="gvCalender_RowCommand">
                <Columns>
                    <asp:TemplateField HeaderText="Mon">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnMon" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tue">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnTue" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Wed">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnWed" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Thu">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnThu" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Fri">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnFri" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Sat">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnSat" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Sun">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnSun" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:Panel>
        <asp:Panel ID="pNew" runat="server" Visible="false">
            <p>
                <asp:LinkButton ID="lbtnAddNewEventType" runat="server" Text="Add New Event Type"
                    OnClick="lbtnAddNewEventType_Click"></asp:LinkButton></p>
            <asp:Panel ID="pAddEvent" runat="server" Visible="false">
                <p>
                    <label>
                        Event Type:</label>&nbsp;<asp:TextBox ID="txtNewEventType" runat="server"></asp:TextBox></p>
                <p>
                    <asp:Button ID="btnAddEventType" Text="Add Event Type" runat="server" OnClick="btnAddEventType_Click" /></p>
            </asp:Panel>
            <p>
                <label>
                    EventType:</label>&nbsp;<asp:DropDownList ID="ddlEventTypes" runat="server">
                    </asp:DropDownList>
            </p>
            <p>
                <label>
                    Name:</label>&nbsp<asp:TextBox ID="txtName" runat="server"></asp:TextBox></p>
            <p>
                <label>
                    Start DateTime:</label>&nbsp<asp:TextBox ID="txtStartDateTime" runat="server"></asp:TextBox>&nbsp;<asp:DropDownList
                        ID="ddlHour1" runat="server">
                    </asp:DropDownList>
                :<asp:DropDownList ID="ddlMinutes1" runat="server">
                </asp:DropDownList>
            </p>
            <p>
                <label>
                    End DateTime:</label>&nbsp<asp:TextBox ID="txtEndDateTime" runat="server"></asp:TextBox>&nbsp;<asp:DropDownList
                        ID="ddlHour2" runat="server">
                    </asp:DropDownList>
                :<asp:DropDownList ID="ddlMinutes2" runat="server">
                </asp:DropDownList>
            </p>
            <p>
                <label>
                    Reminder DateTime</label>&nbsp<asp:TextBox ID="txtReminderDateTime" runat="server"></asp:TextBox>&nbsp;<asp:DropDownList
                        ID="ddlHour3" runat="server">
                    </asp:DropDownList>
                :<asp:DropDownList ID="ddlMinutes3" runat="server">
                </asp:DropDownList>
            </p>
            <p>
                <label>
                    Displayed for User(s):</label>&nbsp<asp:TextBox ID="txtDisplayedForUserIDList" runat="server"></asp:TextBox></p>
            <p>
                <asp:Button ID="btnAdd" Text="Add Event" runat="server" OnClick="btnAdd_Click" /></p>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
<style type="text/css">
    .HasEvent
    {
        background-color: Gray;
        width: 30px;
        text-align: center;
    }
    .NotCurrentMonth
    {
        background-color: Green;
        width: 30px;
        text-align: center;
    }
    .Today
    {
        background-color: Silver;
        border: solid thin black;
        width: 30px;
        text-align: center;
    }
    .CurrentMonth
    {
        background-color: Silver;
        width: 30px;
        text-align: center;
    }
</style>
